package io.renren.modules.jxgk.dao;

import io.renren.modules.jxgk.entity.TeacherInfoEntity;
import io.renren.modules.jxgkphone.entity.TeacherInfo;
import io.renren.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface TeacherInfoDao extends BaseDao<TeacherInfoEntity>{
    List<TeacherInfo> getTeacherByCollege(Map<String, Object> map);

    String getCollegeByUsername(String username);

    TeacherInfoEntity getTeacherInfo(@Param("username") String username);

    //用于多参数查询，与queryTotal基础一致
    int queryAmount(Map<String,Object> params);
}
